package com.javasm.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @version 0.1
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class ReturnResult {
    private Integer code;//操作码
    private String  msg;//操作信息
    private Object  returnData;//返回附加数据
    private PageInfo pageInfo;//页码相关数据

    public ReturnResult(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public ReturnResult(Integer code, String msg,Object returnData) {
        this.code = code;
        this.msg = msg;
        this.returnData = returnData;
    }

}
